//
//  LJImagePickerController.h
//  相片的选择
//
//  Created by txx on 2019/8/25.
//  Copyright © 2019 刘军. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN
@class LJImagePickerController;
@protocol LJImagePickerDelegate <NSObject>
@optional

///相册
-(void)LJImagePickerController:(LJImagePickerController *)picker image:(UIImage *)image info:(NSDictionary<NSString *,id> *)info;
///视频
-(void)LJImagePickerController:(LJImagePickerController *)picker urlStr:(NSURL *)urlStr videoImage:(UIImage *)videoImage info:(NSDictionary<NSString *,id> *)info;
@end



@interface LJImagePickerController : UIImagePickerController
///选择单张图片
- (BOOL)openPhotoLibrary;
///选择视频
- (BOOL)openVideoLibrary;
///拍照
- (void)openCameraForPhotoAndComplexHandler:(void(^)(UIAlertController *alertVC))complexHandler;
///录制
- (void)openCameraForVideo:(NSTimeInterval)maxvideoTime complexHandler:(void(^)(UIAlertController *alertVC))complexHandler;
@property (nonatomic, weak) id<LJImagePickerDelegate> imagePickerDelegate;
@end

NS_ASSUME_NONNULL_END
